<template>
  <!-- 登录页 -->
  <div class="login-box flex">
    <div class="login-from flex">
      <div class="title">{{ config.app_name }}</div>
      <div class="name">
        <div class="tips">账号</div>
        <el-input></el-input>
      </div>
      <div class="password">
        <div class="tips">密码</div>
        <el-input></el-input>
      </div>
      <div>{{ aaa }}</div>
      <el-button type="primary" class="login-btn">登录</el-button>
    </div>
  </div>
</template>

<script setup>
import $common from "@/utils/common";
import config from "@/config/config";

let userData = $common.getlocalStorage("userData");
console.log(userData);

let aaa = $ref(1);
aaa = 2;

function login() {
  $common.setlocalStorage("userData", { name: 1 });
}
</script>
<style lang="scss" scoped>
.login-box {
  width: 100vw;
  height: 100vh;
  // background-color: $theme-color;
  .login-from {
    width: 500px;
    height: 400px;
    background-color: #fff;
    border-radius: 8px;
    flex-direction: column;

    .title {
      font-size: 22px;
      font-weight: bold;
      padding-bottom: 40px;
    }
    .name,
    .password {
      padding: 15px 0;
      width: 300px;
      .tips {
        font-size: 18px;
        margin-bottom: 4px;
      }
    }
    .login-btn {
      width: 200px;
      height: 40px;
      margin-top: 40px;
    }
  }
}
</style>
